package com.ebs.md.fxmonitor.marketmonitor.esper;

/**
 * Revision Author:
 *  $File: //depot/MarketData/fxmonitor/main/src/main/java/com/ebs/md/fxmonitor/marketmonitor/esper/PulseSingleFactStatement.java $
 *  $Revision: #4 $
 *  $DateTime: 2012/08/28 14:37:52 $
 *  $Change: 114269 $
 *  $Author: Aviad.Yosef $
 */

import com.ebs.md.container.esper.AbsStatement;
import com.ebs.md.fxmonitor.marketmonitor.config.IPulsingConfig;


public class PulseSingleFactStatement
extends AbsStatement<IPulsingConfig>
{

	@Override
	protected String createEplExpression() {
		String str =
		String.format(eplExpressionText
				, config.getTimeFrameThreshold()      //1. alert time frame 
				, config.getNumberOfPulsesThreshold() //2. number of pulses(number of basic facts)
				);
		return str;
	}
	
}
